<?php
class Logsetting extends CActiveRecord {
	public static function model($className = __CLASS__) {
		parent::model ( $className );
	}
	public function tableName() {
		return '{{log_setting}}';
	}
	
	public function rules() {
		return array (
			
			array (
				
				"logid,tablename", 
				'required', 
				'message' => '不能为空' 
			)
			, 
			array (
				
				'businessname,urltemplate,createuser,createtime,primarykey,delscripttemp,upscripttemp', 
				"safe" 
			) 
		);
	
	}
	//	public function relations() {
	//		return array (
	//		 
	//		
	//		);
	//	}
	public function attributeLabels() {
		return array (
			
			"logid" => "logid", 
			"tablename" => "tablename", 
			"businessname" => "businessname", 
			"urltemplate" => "urltemplate", 
			"createuser" => "createuser", 
			"createtime" => "createtime", 
			"primarykey" => "primarykey", 
			"delscripttemp" => "delscripttemp", 
			"upscripttemp" => "upscripttemp" 
		);
	}

}
?>